package entityDAOs;

import java.util.List;
import org.hibernate.LockMode;
import org.hibernate.Query;
import static org.hibernate.criterion.Example.create;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import entities.Charater;

/**
 * A data access object (DAO) providing persistence and search support for
 * Charater entities. Transaction control of the save(), update() and delete()
 * operations can directly support Spring container-managed transactions or they
 * can be augmented to handle user-managed Spring transactions. Each of these
 * methods provides additional information for how to configure it for the
 * desired type of transaction control.
 * 
 * @see entities.Charater
 * @author MyEclipse Persistence Tools
 */

public class CharaterDAO extends BaseHibernateDAO<Charater,java.lang.Integer> {
	private static final Logger log = LoggerFactory
			.getLogger(CharaterDAO.class);
	// property constants
	public static final String CHARACTER_NAME = "characterName";
	public static final String GAME_TIME = "gameTime";
	public static final String LASTXX = "lastxx";
	public static final String LASTYY = "lastyy";
	public static final String LAST_MAP = "lastMap";
	public static final String ID_SKIN = "idSkin";

	
	
	public List<Charater> findByCharacterName(Object characterName) {
		return findByProperty(CHARACTER_NAME, characterName);
	}

	public List<Charater> findByGameTime(Object gameTime) {
		return findByProperty(GAME_TIME, gameTime);
	}

	public List<Charater> findByLastxx(Object lastxx) {
		return findByProperty(LASTXX, lastxx);
	}

	public List<Charater> findByLastyy(Object lastyy) {
		return findByProperty(LASTYY, lastyy);
	}

	public List<Charater> findByLastMap(Object lastMap) {
		return findByProperty(LAST_MAP, lastMap);
	}

	public List<Charater> findByIdSkin(Object idSkin) {
		return findByProperty(ID_SKIN, idSkin);
	}

}